﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using Model;

namespace GataBaseSys
{
    public partial class UsenCha : System.Web.UI.Page
    {
        SignInBLL bll = new SignInBLL();
        protected void Page_Load(object sender, EventArgs e)
        {
            this.Repeater1.DataSource = bll.auctions();
            this.Repeater1.DataBind();
        }

        protected void LinkButton1_Command(object sender, CommandEventArgs e)
        {
            var id =Convert.ToInt32(e.CommandArgument);
            SignIn si = new SignIn() { SignInID = id };
            if (bll.DeleteSin(si))
            {

            }
        }

        protected void LinkButton2_Command(object sender, CommandEventArgs e)
        {
            Session["uid"] = e.CommandArgument;
            Server.Transfer("UserXiu.aspx");
        }


        protected void LinkButton3_Command1(object sender, CommandEventArgs e)
        {
    
        }

        protected void LinkButton3_Command(object sender, CommandEventArgs e)
        {
        Session["uid"] = e.CommandArgument;
            Server.Transfer("UserTian.aspx");
        }
    }
}